package cn.icesky1stm.isblog.enums;

/**
 * @ClassName: ResultEnum <br>
 * @Description: 返回结果枚举 <br>
 * @Package: cn.icesky1stm.isblog.enums <br>
 * @author: suitianmou <br>
 * @Date: 2021/6/27-20:12 <br>
 * @version: 1.0 <br>
 * @see <br>
 * @since (从产品的哪一个版本此类被添加进来 ( 可选))<br>
 * 修改历史: <br>
 * 修改时间             修改人           版本变更           修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */

public enum ResultEnum {
    /**
     * 返回码都在此定义
     */
    SUCCESS(200000, "成功"),

    ERROR(999999, "操作失败!"),
    DATA_NOT_FOUND(400001, "数据未找到!!"),
    PARAMS_NULL(400002, "参数不能为空!!!"),

    NOT_LOGIN(400003, "当前账号未登录")
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
